package TestsBuxfer;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;


/**
 * Created with IntelliJ IDEA.
 * User: C13T
 * Date: 12.07.13
 * Time: 19:15
 * To change this template use File | Settings | File Templates.
 */
public class HomePage {
    public WebDriver driver;

    public HomePage(WebDriver driver){
        this.driver = driver;
    }

        public HomePage SummaryPage(){
            //driver.findElement(By.linkText("Login")).sendKeys(Keys.RETURN);
            WebElement TabSummary = driver.findElement(By.id("tab-home"));
            TabSummary.click();

    return new HomePage (driver);
}
    public void CheckContent(){
        WebElement SettingsButt = driver.findElement(By.linkText("Settings"));
        SettingsButt.click();
        WebElement TabSummary = driver.findElement(By.id("tab-home"));
          }
}






